module.exports = {
  presets: ['module:@react-native/babel-preset'],

  // Babel >= 7.13.0 (https://babeljs.io/docs/en/assumptions)
  // ["@babel/plugin-proposal-decorators", { "legacy": true }]],
  
  "plugins": [
    ['module-resolver', 
      {
        root: ["./src"],  // 假设你的源码位于项目的 src 目录下
        alias: {
          "@/utils": "./src/utils",
          "@/components": "./src/components",
          '@/mobx': './src/mobx',
          '@/mock': './src/mock',
          '@/res': './src/res'
        }
      }
    ],
    [
      "@babel/plugin-proposal-decorators",
      { "version": "2023-05", "loose": true },
    ],
    ['@babel/plugin-transform-class-static-block', { "loose": true }],
    ["@babel/plugin-proposal-class-properties", { "loose": true }],
    ['@babel/plugin-transform-flow-strip-types', { "loose": true }]
    ],
  "assumptions": {
      "setPublicClassFields": false,
  }
};
